import { createSSRApp } from "vue";
import App from "./App.vue";
import ElementPlusX from 'vue-element-plus-x'
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
export function createApp() {
  const app = createSSRApp(App);
  app.use(ElementPlusX)
  app.use(ElementPlus)
  const icons = Object.entries(ElementPlusIconsVue);
  for (let i = 0; i < icons.length; i++) {
    const key = icons[i][0];
    const component = icons[i][1];
    app.component(key, component);
  }
  return {
    app,
	
  };
}
